<?php
$tdatacertificate_of_origin_commercials_chart=array();
	$tdatacertificate_of_origin_commercials_chart[".NumberOfChars"]=80; 
	$tdatacertificate_of_origin_commercials_chart[".ShortName"]="certificate_of_origin_commercials_chart";
	$tdatacertificate_of_origin_commercials_chart[".OwnerID"]="";
	$tdatacertificate_of_origin_commercials_chart[".OriginalTable"]="certificate_of_origin_commercials";


	
//	field labels
$fieldLabelscertificate_of_origin_commercials_chart = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelscertificate_of_origin_commercials_chart["English"]=array();
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]=array();
	$fieldLabelscertificate_of_origin_commercials_chart["English"]["id"] = "Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]["id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["English"]["buyer_id"] = "Buyer";
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]["buyer_id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["English"]["account_id"] = "Account";
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]["account_id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["English"]["shipped_on"] = "Shipped On";
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]["shipped_on"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["English"]["shipment_date"] = "Shipment Date";
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]["shipment_date"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["English"]["consigned_to"] = "Consigned To";
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]["consigned_to"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["English"]["sworn_to"] = "Sworn To";
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]["sworn_to"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["English"]["sworn_date"] = "Sworn Date";
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]["sworn_date"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["English"]["chamber_of_commerce"] = "Chamber Of Commerce";
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]["chamber_of_commerce"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["English"]["ref_id"] = "Ref Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["English"]["ref_id"] = "";
	if (count($fieldToolTipscertificate_of_origin_commercials_chart["English"])){
		$tdatacertificate_of_origin_commercials_chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["account_id"] = "Account Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["account_id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["shipped_on"] = "Shipped On";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["shipped_on"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["shipment_date"] = "Shipment Date";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["shipment_date"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["consigned_to"] = "Consigned To";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["consigned_to"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["sworn_to"] = "Sworn To";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["sworn_to"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["sworn_date"] = "Sworn Date";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["sworn_date"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["chamber_of_commerce"] = "Chamber Of Commerce";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["chamber_of_commerce"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "Ref Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "";
	if (count($fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Hong Kong S.A.R.)"])){
		$tdatacertificate_of_origin_commercials_chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]=array();
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]=array();
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["buyer_id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["account_id"] = "Account Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["account_id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["shipped_on"] = "Shipped On";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["shipped_on"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["shipment_date"] = "Shipment Date";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["shipment_date"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["consigned_to"] = "Consigned To";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["consigned_to"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["sworn_to"] = "Sworn To";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["sworn_to"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["sworn_date"] = "Sworn Date";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["sworn_date"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["chamber_of_commerce"] = "Chamber Of Commerce";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["chamber_of_commerce"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["ref_id"] = "Ref Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"]["ref_id"] = "";
	if (count($fieldToolTipscertificate_of_origin_commercials_chart["Chinese (Taiwan)"])){
		$tdatacertificate_of_origin_commercials_chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelscertificate_of_origin_commercials_chart["French"]=array();
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]=array();
	$fieldLabelscertificate_of_origin_commercials_chart["French"]["id"] = "Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]["id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["French"]["buyer_id"] = "Buyer Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]["buyer_id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["French"]["account_id"] = "Account Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]["account_id"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["French"]["shipped_on"] = "Shipped On";
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]["shipped_on"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["French"]["shipment_date"] = "Shipment Date";
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]["shipment_date"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["French"]["consigned_to"] = "Consigned To";
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]["consigned_to"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["French"]["sworn_to"] = "Sworn To";
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]["sworn_to"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["French"]["sworn_date"] = "Sworn Date";
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]["sworn_date"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["French"]["chamber_of_commerce"] = "Chamber Of Commerce";
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]["chamber_of_commerce"] = "";
	$fieldLabelscertificate_of_origin_commercials_chart["French"]["ref_id"] = "Ref Id";
	$fieldToolTipscertificate_of_origin_commercials_chart["French"]["ref_id"] = "";
	if (count($fieldToolTipscertificate_of_origin_commercials_chart["French"])){
		$tdatacertificate_of_origin_commercials_chart[".isUseToolTips"]=true;
	}
}


	
	$tdatacertificate_of_origin_commercials_chart[".NCSearch"]=true;

	
	$tdatacertificate_of_origin_commercials_chart[".ChartRefreshTime"] = 0;

$tdatacertificate_of_origin_commercials_chart[".shortTableName"] = "certificate_of_origin_commercials_chart";
$tdatacertificate_of_origin_commercials_chart[".nSecOptions"] = 0;
$tdatacertificate_of_origin_commercials_chart[".recsPerRowList"] = 1;	
$tdatacertificate_of_origin_commercials_chart[".tableGroupBy"] = "0";
$tdatacertificate_of_origin_commercials_chart[".mainTableOwnerID"] = "";
$tdatacertificate_of_origin_commercials_chart[".moveNext"] = 1;




$tdatacertificate_of_origin_commercials_chart[".showAddInPopup"] = false;

$tdatacertificate_of_origin_commercials_chart[".showEditInPopup"] = false;

$tdatacertificate_of_origin_commercials_chart[".showViewInPopup"] = false;


$tdatacertificate_of_origin_commercials_chart[".fieldsForRegister"] = array();

$tdatacertificate_of_origin_commercials_chart[".listAjax"] = false;

	$tdatacertificate_of_origin_commercials_chart[".audit"] = false;

	$tdatacertificate_of_origin_commercials_chart[".locking"] = false;
	
$tdatacertificate_of_origin_commercials_chart[".listIcons"] = true;
$tdatacertificate_of_origin_commercials_chart[".edit"] = true;
$tdatacertificate_of_origin_commercials_chart[".inlineEdit"] = true;
$tdatacertificate_of_origin_commercials_chart[".view"] = true;



$tdatacertificate_of_origin_commercials_chart[".delete"] = true;

$tdatacertificate_of_origin_commercials_chart[".showSimpleSearchOptions"] = false;

$tdatacertificate_of_origin_commercials_chart[".showSearchPanel"] = true;


$tdatacertificate_of_origin_commercials_chart[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatacertificate_of_origin_commercials_chart[".addPageEvents"] = false;

$tdatacertificate_of_origin_commercials_chart[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatacertificate_of_origin_commercials_chart[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdatacertificate_of_origin_commercials_chart[".isUseTimeForSearch"] = false;

$tdatacertificate_of_origin_commercials_chart[".isUseiBox"] = false;



$tdatacertificate_of_origin_commercials_chart[".isUseInlineJs"] = $tdatacertificate_of_origin_commercials_chart[".isUseInlineAdd"] || $tdatacertificate_of_origin_commercials_chart[".isUseInlineEdit"];

$tdatacertificate_of_origin_commercials_chart[".allSearchFields"] = array();

$tdatacertificate_of_origin_commercials_chart[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"]))
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "id";	
}
$tdatacertificate_of_origin_commercials_chart[".globSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"]))
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "buyer_id";	
}
$tdatacertificate_of_origin_commercials_chart[".globSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"]))
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "account_id";	
}
$tdatacertificate_of_origin_commercials_chart[".globSearchFields"][] = "shipped_on";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("shipped_on", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"]))
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "shipped_on";	
}
$tdatacertificate_of_origin_commercials_chart[".globSearchFields"][] = "shipment_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("shipment_date", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"]))
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "shipment_date";	
}
$tdatacertificate_of_origin_commercials_chart[".globSearchFields"][] = "consigned_to";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consigned_to", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"]))
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "consigned_to";	
}
$tdatacertificate_of_origin_commercials_chart[".globSearchFields"][] = "sworn_to";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("sworn_to", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"]))
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "sworn_to";	
}
$tdatacertificate_of_origin_commercials_chart[".globSearchFields"][] = "sworn_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("sworn_date", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"]))
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "sworn_date";	
}
$tdatacertificate_of_origin_commercials_chart[".globSearchFields"][] = "chamber_of_commerce";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("chamber_of_commerce", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"]))
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "chamber_of_commerce";	
}
$tdatacertificate_of_origin_commercials_chart[".globSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"]))
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "ref_id";	
}


$tdatacertificate_of_origin_commercials_chart[".googleLikeFields"][] = "id";
$tdatacertificate_of_origin_commercials_chart[".googleLikeFields"][] = "buyer_id";
$tdatacertificate_of_origin_commercials_chart[".googleLikeFields"][] = "account_id";
$tdatacertificate_of_origin_commercials_chart[".googleLikeFields"][] = "shipped_on";
$tdatacertificate_of_origin_commercials_chart[".googleLikeFields"][] = "shipment_date";
$tdatacertificate_of_origin_commercials_chart[".googleLikeFields"][] = "consigned_to";
$tdatacertificate_of_origin_commercials_chart[".googleLikeFields"][] = "sworn_to";
$tdatacertificate_of_origin_commercials_chart[".googleLikeFields"][] = "sworn_date";
$tdatacertificate_of_origin_commercials_chart[".googleLikeFields"][] = "chamber_of_commerce";
$tdatacertificate_of_origin_commercials_chart[".googleLikeFields"][] = "ref_id";



$tdatacertificate_of_origin_commercials_chart[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "id";	
}
$tdatacertificate_of_origin_commercials_chart[".advSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "buyer_id";	
}
$tdatacertificate_of_origin_commercials_chart[".advSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "account_id";	
}
$tdatacertificate_of_origin_commercials_chart[".advSearchFields"][] = "shipped_on";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("shipped_on", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "shipped_on";	
}
$tdatacertificate_of_origin_commercials_chart[".advSearchFields"][] = "shipment_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("shipment_date", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "shipment_date";	
}
$tdatacertificate_of_origin_commercials_chart[".advSearchFields"][] = "consigned_to";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consigned_to", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "consigned_to";	
}
$tdatacertificate_of_origin_commercials_chart[".advSearchFields"][] = "sworn_to";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("sworn_to", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "sworn_to";	
}
$tdatacertificate_of_origin_commercials_chart[".advSearchFields"][] = "sworn_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("sworn_date", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "sworn_date";	
}
$tdatacertificate_of_origin_commercials_chart[".advSearchFields"][] = "chamber_of_commerce";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("chamber_of_commerce", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "chamber_of_commerce";	
}
$tdatacertificate_of_origin_commercials_chart[".advSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatacertificate_of_origin_commercials_chart[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_commercials_chart[".allSearchFields"][] = "ref_id";	
}

$tdatacertificate_of_origin_commercials_chart[".isTableType"] = "chart";


	

$tdatacertificate_of_origin_commercials_chart[".isDisplayLoading"] = true;

$tdatacertificate_of_origin_commercials_chart[".isResizeColumns"] = false;




$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatacertificate_of_origin_commercials_chart[".strOrderBy"] = $gstrOrderBy;
	
$tdatacertificate_of_origin_commercials_chart[".orderindexes"] = array();

$tdatacertificate_of_origin_commercials_chart[".sqlHead"] = "SELECT id,   buyer_id,   account_id,   shipped_on,   shipment_date,   consigned_to,   sworn_to,   sworn_date,   chamber_of_commerce,   ref_id";
$tdatacertificate_of_origin_commercials_chart[".sqlFrom"] = "FROM certificate_of_origin_commercials";
$tdatacertificate_of_origin_commercials_chart[".sqlWhereExpr"] = "";
$tdatacertificate_of_origin_commercials_chart[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatacertificate_of_origin_commercials_chart[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatacertificate_of_origin_commercials_chart[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatacertificate_of_origin_commercials_chart[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "certificate_of_origin_commercials";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacertificate_of_origin_commercials_chart["id"]=$fdata;
//	buyer_id
	$fdata = array();
	$fdata["strName"] = "buyer_id";
	$fdata["ownerTable"] = "certificate_of_origin_commercials";
		$fdata["Label"]="Buyer"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "buyer_id";
	
		$fdata["FullName"]= "buyer_id";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacertificate_of_origin_commercials_chart["buyer_id"]=$fdata;
//	account_id
	$fdata = array();
	$fdata["strName"] = "account_id";
	$fdata["ownerTable"] = "certificate_of_origin_commercials";
		$fdata["Label"]="Account"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_id";
	
		$fdata["FullName"]= "account_id";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacertificate_of_origin_commercials_chart["account_id"]=$fdata;
//	shipped_on
	$fdata = array();
	$fdata["strName"] = "shipped_on";
	$fdata["ownerTable"] = "certificate_of_origin_commercials";
		$fdata["Label"]="Shipped On"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "shipped_on";
	
		$fdata["FullName"]= "shipped_on";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacertificate_of_origin_commercials_chart["shipped_on"]=$fdata;
//	shipment_date
	$fdata = array();
	$fdata["strName"] = "shipment_date";
	$fdata["ownerTable"] = "certificate_of_origin_commercials";
		$fdata["Label"]="Shipment Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "shipment_date";
	
		$fdata["FullName"]= "shipment_date";
	
		
		
		
		
		
				$fdata["Index"]= 5;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacertificate_of_origin_commercials_chart["shipment_date"]=$fdata;
//	consigned_to
	$fdata = array();
	$fdata["strName"] = "consigned_to";
	$fdata["ownerTable"] = "certificate_of_origin_commercials";
		$fdata["Label"]="Consigned To"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "consigned_to";
	
		$fdata["FullName"]= "consigned_to";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacertificate_of_origin_commercials_chart["consigned_to"]=$fdata;
//	sworn_to
	$fdata = array();
	$fdata["strName"] = "sworn_to";
	$fdata["ownerTable"] = "certificate_of_origin_commercials";
		$fdata["Label"]="Sworn To"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "sworn_to";
	
		$fdata["FullName"]= "sworn_to";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacertificate_of_origin_commercials_chart["sworn_to"]=$fdata;
//	sworn_date
	$fdata = array();
	$fdata["strName"] = "sworn_date";
	$fdata["ownerTable"] = "certificate_of_origin_commercials";
		$fdata["Label"]="Sworn Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "sworn_date";
	
		$fdata["FullName"]= "sworn_date";
	
		
		
		
		
		
				$fdata["Index"]= 8;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacertificate_of_origin_commercials_chart["sworn_date"]=$fdata;
//	chamber_of_commerce
	$fdata = array();
	$fdata["strName"] = "chamber_of_commerce";
	$fdata["ownerTable"] = "certificate_of_origin_commercials";
		$fdata["Label"]="Chamber Of Commerce"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "chamber_of_commerce";
	
		$fdata["FullName"]= "chamber_of_commerce";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacertificate_of_origin_commercials_chart["chamber_of_commerce"]=$fdata;
//	ref_id
	$fdata = array();
	$fdata["strName"] = "ref_id";
	$fdata["ownerTable"] = "certificate_of_origin_commercials";
		$fdata["Label"]="Ref Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ref_id";
	
		$fdata["FullName"]= "ref_id";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacertificate_of_origin_commercials_chart["ref_id"]=$fdata;

$tdatacertificate_of_origin_commercials_chart[".chartXml"] = '<chart>
<attr value="tables">
	<attr value="0">certificate_of_origin_commercials_chart</attr>
</attr>
<attr value="chart_type">
	<attr value="type">2d_column</attr>
</attr>

<attr value="parameters">
<attr value="0">
<attr value="name">buyer_id</attr>
<attr value="currencyFormat">0</attr>
<attr value="decimalFormat">2</attr>
<attr value="customFormat">0</attr>
<attr value="customFormatStr"></attr>
</attr>
<attr value="1">
<attr value="name">shipped_on</attr>
</attr>
</attr>


<attr value="appearance">
	<attr value="scolor11">FF0000</attr>
	<attr value="scolor12">FF0000</attr>

<attr value="head">'.xmlencode("Chart Title").'</attr>
<attr value="foot">'.xmlencode("Legend Title").'</attr>

<attr value="color51">49563A</attr>
<attr value="color52">49563A</attr>
<attr value="color61">49563A</attr>
<attr value="color62">49563A</attr>
<attr value="color71">C7CDC1</attr>
<attr value="color72">C7CDC1</attr>
<attr value="color81">ECF0E8</attr>
<attr value="color82">ECF0E8</attr>
<attr value="color91">68838B</attr>
<attr value="color92">68838B</attr>
<attr value="color101">48505A</attr>
<attr value="color102">48505A</attr>
<attr value="color111">45595F</attr>
<attr value="color112">45595F</attr>
<attr value="color121"></attr>
<attr value="color122"></attr>
<attr value="color131"></attr>
<attr value="color132"></attr>
<attr value="color141"></attr>
<attr value="color142"></attr>

<attr value="slegend">true</attr>
<attr value="sgrid">false</attr>
<attr value="sname">true</attr>
<attr value="sval">true</attr>
<attr value="sanim">true</attr>
<attr value="sstacked">false</attr>
<attr value="saxes">false</attr>
<attr value="slog">false</attr>
<attr value="aqua">None</attr>
<attr value="cview">Column</attr>
<attr value="is3d">0</attr>
<attr value="isstacked">0</attr>
<attr value="linestyle">0</attr>
<attr value="autoupdate">0</attr>
<attr value="autoupmin">5</attr>
<attr value="cscroll">true</attr>
<attr value="maxbarscroll">10</attr>
</attr>

<attr value="fields">
	<attr value="0">
		<attr value="name">id</attr>
		<attr value="label">Id</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="1">
		<attr value="name">buyer_id</attr>
		<attr value="label">Buyer</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="2">
		<attr value="name">account_id</attr>
		<attr value="label">Account</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="3">
		<attr value="name">shipped_on</attr>
		<attr value="label">Shipped On</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="4">
		<attr value="name">shipment_date</attr>
		<attr value="label">Shipment Date</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="5">
		<attr value="name">consigned_to</attr>
		<attr value="label">Consigned To</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="6">
		<attr value="name">sworn_to</attr>
		<attr value="label">Sworn To</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="7">
		<attr value="name">sworn_date</attr>
		<attr value="label">Sworn Date</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="8">
		<attr value="name">chamber_of_commerce</attr>
		<attr value="label">Chamber Of Commerce</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="9">
		<attr value="name">ref_id</attr>
		<attr value="label">Ref Id</attr>
		<attr value="search"></attr>
	</attr>
</attr>


<attr value="settings">
<attr value="name">id</attr>
<attr value="short_table_name">certificate_of_origin_commercials_chart</attr>
</attr>

</chart>';
	
$tables_data["certificate_of_origin_commercials_chart"]=&$tdatacertificate_of_origin_commercials_chart;
$field_labels["certificate_of_origin_commercials_chart"] = &$fieldLabelscertificate_of_origin_commercials_chart;
$fieldToolTips["certificate_of_origin_commercials_chart"] = &$fieldToolTipscertificate_of_origin_commercials_chart;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["certificate_of_origin_commercials_chart"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["certificate_of_origin_commercials_chart"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto49=array();
$proto49["m_strHead"] = "SELECT";
$proto49["m_strFieldList"] = "id,   buyer_id,   account_id,   shipped_on,   shipment_date,   consigned_to,   sworn_to,   sworn_date,   chamber_of_commerce,   ref_id";
$proto49["m_strFrom"] = "FROM certificate_of_origin_commercials";
$proto49["m_strWhere"] = "";
$proto49["m_strOrderBy"] = "";
$proto49["m_strTail"] = "";
$proto50=array();
$proto50["m_sql"] = "";
$proto50["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto50["m_column"]=$obj;
$proto50["m_contained"] = array();
$proto50["m_strCase"] = "";
$proto50["m_havingmode"] = "0";
$proto50["m_inBrackets"] = "0";
$proto50["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto50);

$proto49["m_where"] = $obj;
$proto52=array();
$proto52["m_sql"] = "";
$proto52["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto52["m_column"]=$obj;
$proto52["m_contained"] = array();
$proto52["m_strCase"] = "";
$proto52["m_havingmode"] = "0";
$proto52["m_inBrackets"] = "0";
$proto52["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto52);

$proto49["m_having"] = $obj;
$proto49["m_fieldlist"] = array();
						$proto54=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "certificate_of_origin_commercials"
));

$proto54["m_expr"]=$obj;
$proto54["m_alias"] = "";
$obj = new SQLFieldListItem($proto54);

$proto49["m_fieldlist"][]=$obj;
						$proto56=array();
			$obj = new SQLField(array(
	"m_strName" => "buyer_id",
	"m_strTable" => "certificate_of_origin_commercials"
));

$proto56["m_expr"]=$obj;
$proto56["m_alias"] = "";
$obj = new SQLFieldListItem($proto56);

$proto49["m_fieldlist"][]=$obj;
						$proto58=array();
			$obj = new SQLField(array(
	"m_strName" => "account_id",
	"m_strTable" => "certificate_of_origin_commercials"
));

$proto58["m_expr"]=$obj;
$proto58["m_alias"] = "";
$obj = new SQLFieldListItem($proto58);

$proto49["m_fieldlist"][]=$obj;
						$proto60=array();
			$obj = new SQLField(array(
	"m_strName" => "shipped_on",
	"m_strTable" => "certificate_of_origin_commercials"
));

$proto60["m_expr"]=$obj;
$proto60["m_alias"] = "";
$obj = new SQLFieldListItem($proto60);

$proto49["m_fieldlist"][]=$obj;
						$proto62=array();
			$obj = new SQLField(array(
	"m_strName" => "shipment_date",
	"m_strTable" => "certificate_of_origin_commercials"
));

$proto62["m_expr"]=$obj;
$proto62["m_alias"] = "";
$obj = new SQLFieldListItem($proto62);

$proto49["m_fieldlist"][]=$obj;
						$proto64=array();
			$obj = new SQLField(array(
	"m_strName" => "consigned_to",
	"m_strTable" => "certificate_of_origin_commercials"
));

$proto64["m_expr"]=$obj;
$proto64["m_alias"] = "";
$obj = new SQLFieldListItem($proto64);

$proto49["m_fieldlist"][]=$obj;
						$proto66=array();
			$obj = new SQLField(array(
	"m_strName" => "sworn_to",
	"m_strTable" => "certificate_of_origin_commercials"
));

$proto66["m_expr"]=$obj;
$proto66["m_alias"] = "";
$obj = new SQLFieldListItem($proto66);

$proto49["m_fieldlist"][]=$obj;
						$proto68=array();
			$obj = new SQLField(array(
	"m_strName" => "sworn_date",
	"m_strTable" => "certificate_of_origin_commercials"
));

$proto68["m_expr"]=$obj;
$proto68["m_alias"] = "";
$obj = new SQLFieldListItem($proto68);

$proto49["m_fieldlist"][]=$obj;
						$proto70=array();
			$obj = new SQLField(array(
	"m_strName" => "chamber_of_commerce",
	"m_strTable" => "certificate_of_origin_commercials"
));

$proto70["m_expr"]=$obj;
$proto70["m_alias"] = "";
$obj = new SQLFieldListItem($proto70);

$proto49["m_fieldlist"][]=$obj;
						$proto72=array();
			$obj = new SQLField(array(
	"m_strName" => "ref_id",
	"m_strTable" => "certificate_of_origin_commercials"
));

$proto72["m_expr"]=$obj;
$proto72["m_alias"] = "";
$obj = new SQLFieldListItem($proto72);

$proto49["m_fieldlist"][]=$obj;
$proto49["m_fromlist"] = array();
												$proto74=array();
$proto74["m_link"] = "SQLL_MAIN";
			$proto75=array();
$proto75["m_strName"] = "certificate_of_origin_commercials";
$proto75["m_columns"] = array();
$proto75["m_columns"][] = "id";
$proto75["m_columns"][] = "buyer_id";
$proto75["m_columns"][] = "account_id";
$proto75["m_columns"][] = "shipped_on";
$proto75["m_columns"][] = "shipment_date";
$proto75["m_columns"][] = "consigned_to";
$proto75["m_columns"][] = "sworn_to";
$proto75["m_columns"][] = "sworn_date";
$proto75["m_columns"][] = "chamber_of_commerce";
$proto75["m_columns"][] = "ref_id";
$obj = new SQLTable($proto75);

$proto74["m_table"] = $obj;
$proto74["m_alias"] = "";
$proto76=array();
$proto76["m_sql"] = "";
$proto76["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto76["m_column"]=$obj;
$proto76["m_contained"] = array();
$proto76["m_strCase"] = "";
$proto76["m_havingmode"] = "0";
$proto76["m_inBrackets"] = "0";
$proto76["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto76);

$proto74["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto74);

$proto49["m_fromlist"][]=$obj;
$proto49["m_groupby"] = array();
$proto49["m_orderby"] = array();
$obj = new SQLQuery($proto49);

$queryData_certificate_of_origin_commercials_chart = $obj;
$tdatacertificate_of_origin_commercials_chart[".sqlquery"] = $queryData_certificate_of_origin_commercials_chart;

$tableEvents["certificate_of_origin_commercials_chart"] = new eventsBase;

?>
